package by.kniazhych.core.server.local.events {
	import by.vaukalak.core.events.BaseEvent;
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Boutylin Mikhail
	 */
	public class ServerGameEvent extends BaseEvent {
		
		public static const PLAYER_CHANGED:String = "playerChanged";
		public static const MOTION_PROCESSED:String = "motionProcessed";
		public static const PEACE_CHANGED:String = "peaceChanged";
		public static const PEACE_CHOISE:String = "peaceChoise";
		public static const FORFEIGHT:String = "forfeight";
		public static const GAME_OVER:String = "gameOver";
		
		public function ServerGameEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false) { 
			super(type, bubbles, cancelable);
			
		} 
		
		public override function clone():Event { 
			return new ServerGameEvent(type, bubbles, cancelable);
		} 
		
		public override function toString():String { 
			return formatToString("ServerGameEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
		
	}
	
}